package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * <p>
 * 调价表
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Modprice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 调价id
     */
    @TableId(value = "modid", type = IdType.AUTO)
    private Integer modid;

    /**
     * 员工编号
     */
    private Integer staid;

    /**
     * 调价日期
     */
    private Date moddate;

    /**
     * 原始价格
     */
    private double modoripri;

    /**
     * 调价价格
     */
    private double modpri;

    /**
     * 数据库名称
     */
    private String moddbsource;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getModid() {
        return modid;
    }

    public void setModid(Integer modid) {
        this.modid = modid;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Date getModdate() {
        return moddate;
    }

    public void setModdate(Date moddate) {
        this.moddate = moddate;
    }

    public double getModoripri() {
        return modoripri;
    }

    public void setModoripri(double modoripri) {
        this.modoripri = modoripri;
    }

    public double getModpri() {
        return modpri;
    }

    public void setModpri(double modpri) {
        this.modpri = modpri;
    }

    public String getModdbsource() {
        return moddbsource;
    }

    public void setModdbsource(String moddbsource) {
        this.moddbsource = moddbsource;
    }

    @Override
    public String toString() {
        return "Modprice{" +
                "modid=" + modid +
                ", staid=" + staid +
                ", moddate=" + moddate +
                ", modoripri=" + modoripri +
                ", modpri=" + modpri +
                ", moddbsource='" + moddbsource + '\'' +
                '}';
    }
}
